import {sendVideoMessage} from "../actions/send_video_message.ts";
import {listen} from "@tauri-apps/api/event";
import {openVideoWindow} from "../actions/open_video_window.ts";

export function listenMessageToVideoCall() {
    // 监听视频呼叫消息
    listen("receive-message-video-call", async (event) => {
        let msg = event.payload;
        openVideoWindow(false);
    }).then(r => {
        console.log("listenMessageToVideoCall success");
    });
}